/*
    yandexnarodManage

    Copyright (c) 2008 by Alexander Kazarin <boiler@co.ru>

 ***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************
*/

#ifndef YANDEXNARODMANAGE_H
#define YANDEXNARODMANAGE_H

#include <QWidget>
#include <QSettings>
#include <QtNetwork>
#include <QClipboard>
#include "ui_yandexnarodmanage.h"

class QNetworkAccessManager;
class QNetworkRequest;
class QNetworkReply;

class yandexnarodManage : public QWidget, public Ui::yandexnarodManageClass
{
Q_OBJECT

public:
	yandexnarodManage( QString );

private:
	void netmanDo();
	QString narodLogin;
	QString narodPasswd;
	QString action;
	QStringList cooks;
	QString page;
	QNetworkAccessManager *netman;
	QNetworkRequest netreq;
	int filesnum;
	QList<QString> fids;
	QList<QString> furls;
	QList<QIcon> fileicons;
	QHash<QString, int> fileiconstyles;
	
private slots:
	void on_btnDelete_clicked();
	void on_btnClipboard_clicked();
	void on_listWidget_pressed(QModelIndex index);
	void netrpFinished( QNetworkReply* );
	void on_btnReload_clicked();
};
#endif

